<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2019/3/29
  Time: 13:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
</head>
<style>
    body{
        text-align: center;
    }
    div{
        height: 400px;
        width: 600px;
        margin: 300px auto;
    }
</style>
<script type="text/javascript" src="js/jquery_1.12.4.min.js"></script>
<script type="text/javascript" >
  $(function () {
      $("#btn").click(
          function () {
             var name = $("#txt").val();
             window.location.href="/student?action=query&name="+name;
          }
      );
  })
</script>
<body>
  <div>
    <input id="txt"  type="text" placeholder="请输入要查询的学生姓名"/>
    <input type="button" id='btn' value="查询">
  </div>
</body>
</html>